power = 1.0
study = 'y'
unstudy = 'n'
temp = 0
state = 'y'
for i in range(0, 365):
    if state == study and (temp in [0,1,2]):
        power *= 1
        temp = (temp + 1)%7
    elif state == study and (temp in [3,4,5,6]):
        power *= 1.01
        temp = (temp + 1)%7
    elif state == unstudy:
        temp = 0
    else:
        pass
print("连续学习365天后能力值为{:.2f}".format(power))